''''''

# Standard
# Related
import lx
# Local


_sceneservice = lx.Service('sceneservice')
_sceneservice_query = _sceneservice.query
_sceneservice_select = _sceneservice.select

def get_current_scene_index():
    ''''''
    _sceneservice_select('scene.index', 'current')
    
    # We subtract one because modo returns indexes starting from 1, not zero.
    # However, it requires you to MAKE queries from zero.. retarded eh?
    # So to keep a standard, all scene indexes in moopy will be from 0.
    return int(_sceneservice_query('scene.index')) - 1

def get_scene_name(scene_index):
    ''''''
    
    _sceneservice_select('scene.name', str(scene_index))
    return _sceneservice_query('scene.name')
